import useAxios from "@/hooks/useAxios"

function add(data){
  return useAxios('/shop-api/order/add',{
    method:"POST",
    data,
    reqAuth:true,
    loading:true
  })
}
function list(status){
  return useAxios('/shop-api/order/list',{
    method:"POST",
    data:{
      status
    },
    reqAuth:true
  })
}
function getOne(id){
  return useAxios('/shop-api/order/getOne',{
    method:"POST",
    data:{
      id
    },
    reqAuth:true
  })
}
export {add,list,getOne}